package ast;

import java.util.ArrayList;

public class ParallelNetwork extends Network {

	private ArrayList<Network> networks;
	
	public ParallelNetwork(ArrayList<Network> nets)
	{
		networks = nets;
	}
	
	public ArrayList<Network> getComponentNetworks()
	{
		return networks;	
	}
	
	public String toString(int indent)
	{
		String res = "";
		for (int i = 0; i < networks.size(); i++) {
			res += networks.get(i).toString(0);
			if (i != networks.size() - 1)
				res += "|";
		}
		
		return res;
	}
}
